package com.atchangsha.system.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.atchangsha.system.common.utils.PageUtils;
import com.atchangsha.system.common.utils.Query;
import com.atchangsha.system.dao.CouponNumberDao;
import com.atchangsha.system.entity.CouponNumberEntity;
import com.atchangsha.system.service.CouponNumberService;

@Service("couponNumberService")
public class CouponNumberServiceImpl extends ServiceImpl<CouponNumberDao, CouponNumberEntity> implements CouponNumberService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<CouponNumberEntity> page = this.page(
                new Query<CouponNumberEntity>().getPage(params),
                new QueryWrapper<CouponNumberEntity>()
        );

        return new PageUtils(page);
    }

}